package pl.pasu.ocrtc;

import android.content.Context;
import android.graphics.Bitmap;

public class BuildInEngine extends OcrEngine {

    private OcrReader mReader;
    private Context mContext;

    public BuildInEngine(Context context) {
        mContext = context;
        mReader = new OcrReader(mContext, OcrReader.Language.EN);
        mReader.copyFilesToSd();
    }

    @Override
    public void readImage(Bitmap bmp, OcrDoneCallback callback) {
        mReader.readImageText(callback, bmp);
    }
}
